package com.lianzhihui.minitiktok.ui.main.four

import android.content.Intent
import android.view.View
import com.echofeng.common.net.DataManager
import com.echofeng.common.ui.base.BaseActivity
import com.lianzhihui.onlyleague.R
import kotlinx.android.synthetic.main.activity_manage_setting.*

class ManageSettingActivity : BaseActivity() , View.OnClickListener{
    override fun getLayoutId(): Int {
        return R.layout.activity_manage_setting
    }

    override fun initView() {
        setTitle("账号管理")
        item_setting1.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        if (v != null) {
            when(v.id){
                R.id.item_setting1->{
                    startActivity(Intent(context,EditInfoActivity::class.java))
                }
                R.id.bt_exit_login->{
                    DataManager.exitAccount();
                }
            }
        }
    }
}